#ifndef QELLIPSETOOL_H
#define QELLIPSETOOL_H

#include "qmytool.h"
#include <QPointF>
#include <QGraphicsItem>

class TOOLS_EXPORT QEllipseTool : public QMyTool
{
	Q_OBJECT

public:
	QEllipseTool(QObject *parent=0);
	~QEllipseTool();
    virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent * contextMenuEvent);
    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);
    virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent);
    virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * mouseEvent );

private:
	QPointF point1;
	QPointF point2;
	QGraphicsEllipseItem *temp;
	bool isDrawing;
};

#endif // QELLIPSETOOL_H
